<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<title></title>
<#include "../head.html"/>
<script type="text/javascript">
function getTableForm() {
	return document.getElementById('tableForm');
}
function optDelete() {
	if(Pn.checkedCount('ids')<=0) {
		alert("请选择您要操作的数据");
		return;
	}
	if(!confirm("您确定删除吗？")) {
		return;
	}
	var f = getTableForm();
	f.action="v_delete.do";
	f.submit();
}
function optQuery(){
  if($("#query").is(":hidden")){
   $("#query").show();
   return;
  }
  if($("#query").is(":visible")){
   $("#query").hide();
  }
}
function optStatistics(area) {
	var f = document.getElementById("statistics");
	$("input[name=area]").val(area);
	f.action="../statistic_range/v_list.do";
	f.method="post";
	f.submit();
}
</script>
</head>
<body>
<form method="post" id="statistics">
<input type="hidden" name="area"/>
</form>
<div class="box-positon">
	<div class="rpos">当前位置: 区域数据 - 列表</div>
	<form class="ropt">
		<input class="query" type="button" value="查询" onclick="optQuery();"/>
	</form>
	<div class="clear"></div>
</div>
<div class="body-box">
<form method="post" action="v_rangeStatistics.do" id="query" style="display: none;">
<table width="100%" class="pn-ftable" cellpadding="2" cellspacing="1" border="0">
<tr>
<td colspan="8" style="background-color: #e6f2fe;text-align: center;padding-right: 3px;color: #000;height: 27px;">条件查询</td>
</tr>
<tr>
    <td width="10%" class="pn-flabel pn-flabel-h">楼盘名称：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="name" style="width:150px"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">区域：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="area" style="width:150px"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">出卖人：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="seller" style="width:150px"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">许可证：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="license" style="width:150px"/></td>
</tr>
<tr>
    <td width="10%" class="pn-flabel pn-flabel-h">用途：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="use" style="width:150px"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">形态：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="building" style="width:150px"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">开始时间：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="begin" style="width:150px" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
    <td width="10%" class="pn-flabel pn-flabel-h">结束时间：</td>
    <td colspan="1" width="15%" class="pn-fcontent"><input type="text" name="end" style="width:150px" class="Wdate" onclick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
</tr>
<tr>
<td colspan="8" class="pn-fbutton">
	<input type="submit" value="查询" class="submit" class="submit"/> &nbsp; 
	<input type="reset" value="重置" class="reset" class="reset"/>
</td>
</tr>
</table>
</form>
<form id="tableForm" method="post">
<input type="hidden" name="pageNo" value="${pageNo!}"/>
<input type="hidden" name="name" value="${name!}"/>
<input type="hidden" name="area" value="${area!}"/>
<input type="hidden" name="seller" value="${seller!}"/>
<input type="hidden" name="license" value="${license!}"/>
<input type="hidden" name="use" value="${use!}"/>
<input type="hidden" name="building" value="${building!}"/>
<table class="pn-ltable" style="" width="100%" cellspacing="1" cellpadding="0" border="0">
<thead class="pn-lthead">
<tr>
	<th>区域</th>
	<th>区域成交套数/套</th>
	<th>区域成交金额</th>
	<th>区域成交建面</th>
	<th>区域成交套内</th>
	<th>区域平均公摊</th>
	<th>区域单套金额</th>
	<th>区域建面价格/元</th>
	<th>区域套内价格/元</th>
	<th>区域单套建面/㎡</th>
	<th>区域单套套内/㎡</th>
</tr>
</thead>
<tbody  class="pn-ltbody">
<#list range as bean>
<tr onmouseover="this.bgColor='#eeeeee'" onmouseout="this.bgColor='#ffffff'">
	<td><a href="javascript:optStatistics('${bean[0]}')" class="pn-opt">${bean[0]}</a></td>
	<td>${bean[1]}</td>
	<td>${bean[2]}</td>
	<td>${bean[3]}</td>
	<td>${bean[4]}</td>
	<td>${bean[5]}%</td>
	<td>${bean[6]}</td>
	<td>${bean[7]}</td>
	<td>${bean[8]}</td>
	<td>${bean[9]}</td>
	<td>${bean[10]}</td>
</tr>
</#list>
<tr onmouseover="this.bgColor='#eeeeee'" onmouseout="this.bgColor='#ffffff'">
	<td align="right">合计</td>
	<td>${total[0]!}</td>
	<td>${total[1]!}</td>
	<td>${total[2]!}</td>
	<td>${total[3]!}</td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
	<td></td>
</tr>
</tbody>
</table>
</form>
</div>
</body>
</html>